package com.chinacoal.hr.levelapi.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * @author: YunTao.Li
 * @create: 2019-12-12 17:12
 * @description:
 **/
@Data
public class SubmitParam {
    @ApiModelProperty(value = "流程编码", example = "", required = true)
    @NotNull(message = "流程编码不能为空: processCode")
    private String processCode;

    @ApiModelProperty(value = "是否直接完成填报节点的审批", example = "Y-待办推至第一个审批人，N-待办推至填报人 ", required = true)
    @NotNull(message = "是否直接完成填报节点的审批不能为空: isSkip")
    private String isSkip;

    @ApiModelProperty(value = "实例id", example = "重启流程必需传, 不传则按新流程处理", required = false)
    private Long instanceId;

    @ApiModelProperty(value = "业务数据集", example = "", required = false)
    private Map<String, Object> businessParam;
}
